import request from '@/utils/request'

// 查询垃圾桶检测模块列表
export function listGarbage(query) {
  return request({
    url: '/AlgorithmBusiness/garbage/list',
    method: 'get',
    params: query
  })
}

// 查询垃圾桶检测模块详细
export function getGarbage(id) {
  return request({
    url: '/AlgorithmBusiness/garbage/' + id,
    method: 'get'
  })
}

// 新增垃圾桶检测模块
export function addGarbage(data) {
  return request({
    url: '/AlgorithmBusiness/garbage',
    method: 'post',
    data: data
  })
}

// 修改垃圾桶检测模块
export function updateGarbage(data) {
  return request({
    url: '/AlgorithmBusiness/garbage',
    method: 'put',
    data: data
  })
}

// 删除垃圾桶检测模块
export function delGarbage(id) {
  return request({
    url: '/AlgorithmBusiness/garbage/' + id,
    method: 'delete'
  })
}
